var rpc = require('./index.js');

new rpc().connect(5556, 'localhost', function(remote, conn) {
	// console.log('connected, now callback');
	// console.log('who call me:', this);
	console.log('remote', remote);

	remote.add(1, 2, function(res) {
		console.log(res)
		conn.destroy();
		conn.end();
	});
});